package com.livedocumentation.client.web.menu;

import com.google.gwt.user.client.ui.VerticalPanel;
import com.livedocumentation.client.GWTEntryPoint;
import com.livedocumentation.client.web.header.SearchBox;

public class Menu extends VerticalPanel {

	public static FeaturesLink featuresListLink = new FeaturesLink();
	public static ArchitectureLink architectureLink = new ArchitectureLink();
	public static EntitiesLink entitiesLink = new EntitiesLink();

	public Menu() {

		this.setSpacing(10);

		this.add(new SearchBox());

		this.add(featuresListLink);

		this.add(new FeaturesList());

		// if (GlobalVariables.isSpecification) {

		// this.add(architectureLink);

		// this.add(entitiesLink);

		// }

		this.add(new UserInterfaceList(GWTEntryPoint.sourceFeatures));

	}

	public static void untoggleLinks() {

		featuresListLink.setHTML(FeaturesLink.textUnpressed);
		architectureLink.setHTML(ArchitectureLink.textUnpressed);
		entitiesLink.setHTML(EntitiesLink.textUnpressed);
	}
}